import request from '@/utils/request'

// 物流提交-列表
export const tailBillList = data =>
  request({
    url: `/finance/tail-bill/index`,
    method: 'post',
    data,
  })

// 其他费用-列表
export const otherFeeList = data =>
  request({
    url: `/finance/tail-other-fee/index`,
    method: 'post',
    data,
  })

// 尾程对账 审核
export const tailBillSubmit = data =>
  request({
    url: `/finance/tail-bill/audit`,
    method: 'post',
    data,
  })

// 尾程对账-其他费用-审核
export const otherAudit = data =>
  request({
    url: `/finance/tail-other-fee/audit`,
    method: 'post',
    data,
  })

// 尾程对账-提交
export const submitBills = data =>
  request({
    url: `/finance/tail-bill/submit`,
    method: 'post',
    data,
  })

// 尾程对账-确认/批量确认及备注
export const sureBills = data =>
  request({
    url: `/finance/tail-bill/sure`,
    method: 'post',
    data,
  })

// 尾程对账-其他费用-确认/批量确认及备注
export const sureOther = data =>
  request({
    url: `/finance/tail-other-fee/sure`,
    method: 'post',
    data,
  })

// 尾程对账-作废
export const cancelBills = data =>
  request({
    url: `/finance/tail-bill/cancel`,
    method: 'post',
    data,
  })

// 尾程对账-导入
export const tailBillImport = data =>
  request({
    url: `/finance/tail-bill/import`,
    method: 'post',
    data,
  })

// 尾程对账-其他费用-导入
export const otherFeeImport = data =>
  request({
    url: `/finance/tail-other-fee/import`,
    method: 'post',
    data,
  })

// 尾程对账-运费明细
export const transportCostDetail = data =>
  request({
    url: `/finance/tail-bill/freight-detail`,
    method: 'post',
    data,
  })

// 尾程对账-其他费用-提交
export const otherFeeSubmit = data =>
  request({
    url: `/finance/tail-other-fee/submit`,
    method: 'post',
    data,
  })
